﻿using System;
using System.Linq;
using System.Xml.Linq;
using System.Net.Http;
using OurDailyBread.Helpers;
using Windows.Data.Json;
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Text;
using System.Net.Http.Headers;
using Newtonsoft.Json.Converters;
using OurDailyBread.Model;
using OurDailyBread.ViewModel;

namespace OurDailyBread.Design
{
    public class DesignMyLikeDataService : IMyLikeDataService
    {

        public void GetData(Action<Object, Exception> callback)
        {
            List<RoamingLikes> myLikeList = new List<RoamingLikes>();
            for (int i = 0; i < 20; i++)
            {
                RoamingLikes myLike = new RoamingLikes(DateTime.Today,
                    "Moment of Grace " + i.ToString(),
                    "Then the shepherds returned, glorifying and praising God for all the things that they had heard and seen, as it was told them.",
                    "Assets/background.jpg");
                myLikeList.Add(myLike);
            }

            string getResults = JsonConvert.SerializeObject(myLikeList);
            callback(getResults, null);
        }

        public void PutData(string roamData, Action<Object, Exception> callback)
        {
        }
    }
}